package threadDemo12;

public class TestDemo {
    public static void main(String[] args) {
        Food food=new Food();
        food.setName("吃货");

        Cook cook=new Cook();
        cook.setName("厨师");

        food.start();
        cook.start();
    }
}
